#!/bin/bash

if [ -f /sys/bus/mmc/devices/mmc1:8800/vendor ];then
    bt_chip_id_vendor="/sys/bus/mmc/devices/mmc1:8800/vendor"
fi
bt_chip_id=`cat ${bt_chip_id_vendor}`

case "${bt_chip_id}" in
    0x0000)  # uwe5622
        # 等待BT 驱动加载成功
        while [ ! -e /dev/ttyBT0 ]; do
            sleep 1
        done
        /usr/bin/hciattach -n -s 1500000 /dev/ttyBT0 sprd
    ;;
esac


